import request from '@/utils/request'

// 查询缴费信息列表
export function listRefund(query) {
  return request({
    url: '/fund/refund/list',
    method: 'get',
    params: query
  })
}
// 获取小区信息
export function getAreaInfo1(areaName) {
  return request({
    url: '/house/area/list2/'+areaName,
    method: 'get'
  })
}

// 获取小区信息
export function getAreaInfo() {
  return request({
    url: '/house/area/list1',
    method: 'get'
  })
}

// 获取楼宇信息
export function getGroupInfo(areaName) {
  return request({
    url: '/house/group/getGroupInfo/'+areaName,
    method: 'get'
  })
}

// 获取单元信息
export function getUnitInfo(areaName,groupName) {
  return request({
    url: '/house/unit/getUnitInfo/'+areaName+"/"+groupName,
    method: 'get'
  })
}
// 查询缴费信息详细
export function getRefund(costId) {
  return request({
    url: '/fund/refund/' + costId,
    method: 'get'
  })
}

// 删除缴费信息
export function delRefund(costId,refundDate) {
  return request({
    url: '/fund/refund/' + costId+'/'+refundDate,
    method: 'delete'
  })
}



//退款凭证
export function getNote(costId) {
  return request({
    url:'/fund/refund/getNote/'+costId,
    method:'get'
  })
}
